import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui'
import router from './router'

import 'element-ui/lib/theme-chalk/index.css'
import './assets/css/reset.css'

Vue.config.productionTip = false
Vue.use(ElementUI)

Vue.prototype.getQualifiedName = item => {
    return item.packageName + '.' + item.className
}
Vue.prototype.getRiskLevel = item => {
    if (item.riskLevel === undefined) {
        return '风险未知'
    } else {
        switch (item.riskLevel) {
            case 0:
                return '无风险'

            case 1:
                return '低风险'

            case 2:
                return '中风险'

            case 3:
                return '高风险'
        }
    }
}
Vue.prototype.bus = new Vue()

new Vue({
    render: h => h(App),
    router,
}).$mount('#app')
